#include "courseinfo.h"

CourseInfo::CourseInfo()
{
    m_id.clear();
    m_name.clear();
    m_type.clear();
    m_lesson.clear();
}

CourseInfo::CourseInfo(const string &id, const string &name,
                         const string &type, const string &lesson)
{
    m_id = id;
    m_name = name;
    m_type = type;
    m_lesson = lesson;
}

void CourseInfo::display(void)const
{
    cout << "ID: " << m_id << endl;
    cout << "Name: " << m_name << endl;
    cout << "Type: " << m_type << endl;
    cout << "Lesson: " << m_lesson << endl;
}

void CourseInfo::setID(const string &id)
{
    m_id = id;
}

void CourseInfo::setName(const string &name)
{
    m_name = name;
}

void CourseInfo::setType(const string &type)
{
    m_type = type;
}

void CourseInfo::setLesson(const string &lesson)
{
    m_lesson = lesson;
}

const string &CourseInfo::getID() const
{
    return m_id;
}
const string &CourseInfo::getName() const
{
    return m_name;
}
const string &CourseInfo::getType() const
{
    return m_type;
}
const string &CourseInfo::getLesson() const
{
    return m_lesson;
}


